package com.dq.mail.entity.vo;

import lombok.Data;

import java.util.List;

/**
 * @ClassName: PageParam
 * @Description: 分页统一返回数据
 * @Author: app-backend-public_小强 (QQ:2680825683)
 * @Since: 2023/3/7 13:11
 */
@Data
public class PageResult<T> {
    // 数据列表
    private List<T> items;

    //总记录数
    private long total;

    //当前页码
    private long currentPage;

    //每页记录数
    private long pageSize;

    public PageResult(List<T> items, long total, long currentPage, long pageSize) {
        this.items = items;
        this.total = total;
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }
}
